﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HCFramework.Product.FrontEndControl
{
    public partial class SearchProduct : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadState();
            }
        }

        private void LoadState()
        {
            string search = Request.QueryString["search"] + "";
            if (search != "")
            {
                txtSearchProduct.Text = search;
            }
        }
    }
}